package com.cungmua.app.model.request;

import com.cungmua.app.utils.AppUtils;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
public class WardRequest extends AuthenticatedRequest {
    public static final int SHIPPABLE = 2;
    public static final int ALL = 1;
    private int districtId;
    private int currentCityId;
    private int wardType;

    public WardRequest(String deviceId, String token) {
        super(deviceId, token);
    }

    @JsonProperty("DistrictId")
    public int getDistrictId() {
        return districtId;
    }

    public void setDistrictId(int districtId) {
        this.districtId = districtId;
    }

    @JsonProperty("Type")
    public int getWardType() {
        return wardType;
    }

    public void setWardType(int wardType) {
        this.wardType = wardType;
    }

    @JsonProperty("CurrentCity")
    public int getCurrentCityId() {
        return currentCityId;
    }

    public void setCurrentCityId(int currentCityId) {
        this.currentCityId = currentCityId;
    }

    @Override
    public String getSign() {
        return AppUtils.MD5(String.valueOf(getDistrictId()) + getVersion() + getDeviceId() + getToken());
    }
}

